<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跳转提示</title>
    <style type="text/css">
        * {
            padding: 0;
            margin: 0;
        }

        body {
            font-size: 14px;
            font-weight: normal;
            font-variant: normal;
            color: #333;
            -moz-osx-font-smoothing: grayscale;
            -webkit-font-smoothing: antialiased !important;
            text-align: center;
        }

        .header {
            background-color: rgba(0, 0, 0, 0.03);
            font-size: 20px;
            line-height: 42px;
            height: 42px;
        }

        .header span {
            font-weight: 300;
        }

        .section {
            padding: 50px 15px 15px;
            padding-top: 10vh;
        }

        .err_code {
            font-size: 120px;
            margin-bottom: 50px;
        }

        .err_txt h4 {
            font-size: 1.2em;
            line-height: 1.25;
            margin: 0 0 10px;
            font-weight: normal;
            text-transform: uppercase;
        }

        .err_txt p {
            padding-bottom: 15px;
            color: rgba(0, 0, 0, .5);
        }

        .footer {
            padding-top: 15px;
        }

        .footer a {
            color: rgba(0, 0, 0, .5);
            text-decoration: none;
        }

    </style>
</head>
<body>
<div class="wrap">
    <div class="header">
        XCMS<span>Admin</span>
    </div>
    <div class="section">
        <div class="err_code"><?=($record['status'] == 1) ? ':-)': ':-('?></div>
        <div class="err_txt">
            <h4><?=$record['message']?></h4>
            <p>
                <?=($record['detail'] != '') ? $record['detail'] : 'Something went wrong and server couldn\'t process your request.'?>
            </p>
        </div>
    </div>
    <div class="footer">
        <?php if($record['jump_url'] != '0'):?>等待&nbsp;<b
            id="wait"><?=$record['wait_second']?></b>s&nbsp;后跳转，<?php endif;?>
        <a
                id="href" href="<?=$record['jump_url']?>">返回首页</a>
    </div>
</div>
<script type="text/javascript">
    (function () {
        var wait = document.getElementById('wait'), href = document.getElementById('href').href;
        if (href != '0') {
            var interval = setInterval(function () {
                var time = --wait.innerHTML;
                if (time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                }
            }, 1000);
        }
    })();
</script>
</body>
</html>